package com.kx.yooli.kx.wechat.po.wx;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Map;

/**
 * @author john_sqwen-childe.wen
 * date 2024/6/5
 * PROJECT_NAME wechat
 * description create TextMessage by john_sqwen
 * and  value is
 */
@XStreamAlias("xml")
public class TextMessage extends BaseMessage
{
    private final Logger log = LoggerFactory.getLogger(TextMessage.class);
    @XStreamAlias("Content")
    private String content;

    public TextMessage(Map<String, String> requestMap, String content){
        //调用父类构造方法
        super(requestMap);
        //设置类型为文本类型
        this.setMsgType("text");
        this.content=content;
    }
    public TextMessage(){}

    public TextMessage(String content){
        this.content=content;
    }
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "TextMessage{" +
                "content='" + content + '\'' +
                '}';
    }
}
